package com.jader.fragment;

import com.jader.activities.OrderDetailActivity;
import com.zlp.jader.R;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class Order_detail_bottom_fragment extends Fragment {

	private View view;
	private TextView order_detail_pay, order_detail_delete_order,
			order_detail_phone;
	private OrderDetailActivity activity;

	@Override
	public void onAttach(Activity activity) {
		this.activity = (OrderDetailActivity) activity;
		super.onAttach(activity);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.order_detail_bottom_fragment, null);
		initViews();
		return view;
	}

	private void initViews() {
		order_detail_pay = (TextView) view.findViewById(R.id.order_detail_pay);
		order_detail_delete_order = (TextView) view
				.findViewById(R.id.order_detail_delete_order);
		order_detail_phone = (TextView) view
				.findViewById(R.id.order_detail_phone);
		order_detail_pay.setOnClickListener(activity);
		order_detail_delete_order.setOnClickListener(activity);
		order_detail_phone.setOnClickListener(activity);
	}

}
